<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE >
<html>

<head>
	<base href="<%=basePath%>">
	<title>耳聋基因检测</title>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="icon" href="../favicon.ico" />
	<link href="static/manage-sys/css/bootstrap.min.css" rel="stylesheet" />
	<link href="static/manage-sys/css/font-awesome.min.css" rel="stylesheet" />
	<link href="static/manage-sys/css/default.css" rel="stylesheet" type="text/css" />
	<!-- 自动补全-->
	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/autoComplete.css">
	<!-- 耳聋基因页面样式-->
	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/deaf.css">

	<script src="static/manage-sys/js/jquery.min.js"></script>
	<!--[if lt IE 9]>
	<script src="js/bootstrap/html5shiv.min.js"></script>
	<script src="js/bootstrap/respond.min.js"></script>
	<![endif]-->
	<!--页面加载进度条-->
	<link href="static/manage-sys/css/pace/dataurl.css" rel="stylesheet" />
	<script src="static/manage-sys/js/pace/pace.min.js"></script>
	<script src="static/manage-sys/js/jquery.scrolltopcontrol/scrolltopcontrol.js" type="text/javascript"></script>
	<script src="static/manage-sys/js/jquery.extend.js" type="text/javascript"></script>
	<script src="static/manage-sys/js/default.js" type="text/javascript"></script>

	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/easyui/themes/ui-cupertino/easyui.css" />
	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/easyui/themes/icon.css" />
	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/icon.css" />
	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/uims.css" />
	<link rel="stylesheet" type="text/css" href="static/manage-sys/add-sample/css/temp.css" />

	<script type="text/javascript" src="static/manage-sys/add-sample/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="static/manage-sys/add-sample/easyui/locale/easyui-lang-zh_CN.js"></script>

	<script src="static/manage-sys/js/bootstrap/bootstrap.min.js"></script>
	<script src="static/manage-sys/js/bootstrap/bootstrap-table.min.js"></script>
	<script src="static/manage-sys/js/bootstrap/bootstrap-table-zh-CN.min.js"></script>

	<script type="text/javascript" src="static/manage-sys/add-sample/js/dataGridCellTip.js"></script>
	<script type="text/javascript" src="static/manage-sys/add-sample/js/validate.js"></script>
	<script type="text/javascript" src="static/manage-sys/add-sample/js/json2.js"></script>

	<!-- artTemplate 模板引擎 -->
	<script src="static/manage-sys/js/template-web.js" type="text/javascript"></script>

	<!-- 设置送检单位 -->
	<script src="static/manage-sys/js/set-customer.js" type="text/javascript"></script>
	<!-- 下拉菜单 -->
	<link href="static/manage-sys/css/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" />
	<script src="static/manage-sys/js/bootstrap-select/bootstrap-select.min.js"></script>
	<script src="static/manage-sys/js/bootstrap-select/i18n/defaults-zh_CN.min.js"></script>
	<script src="static/manage-sys/js/bootstrap-select/bootstrap-select-custom.js"></script>
	<!-- 省市区 -->
	<script type="text/javascript" src="static/manage-sys/js/cj-pcd/cj-pcd-1.0.1.min.js"></script>
	<!-- 自动补全-->
	<script type="text/javascript" src="static/manage-sys/add-sample/js/autoComplete.js"></script>

	<script type="text/javascript">

        $(document).ready(function(){
            //读取
            var newsObject = sessionStorage.getItem('sampleInfos');
            //重新转换为对象
            newsObject = JSON.parse(newsObject);
            //alert(newsObject.customerName);
            $("#productName").text(newsObject.productName);
            $("#customerNameId").text(newsObject.customerName);
            $("#departments").text(newsObject.departments);
            $("#bloodDate").text(newsObject.bloodDate);
            $("#sampleName").text(newsObject.sampleName);
            $("#motherName").text(newsObject.motherName);
            $("#couponNum").text(newsObject.couponNum);
            if(newsObject.sampleSex){
                //修改显示信息，数据库定义 性别(0:未知；1男，2女)
                if(newsObject.sampleSex == 0){
                    $("#sampleSex").text("未知");
                }
                else if(newsObject.sampleSex == 1){
                    $("#sampleSex").text("男");
                }
                else if(newsObject.sampleSex == 2){
                    $("#sampleSex").text("女");
                }
            }
            $("#birthDate").text(newsObject.birthDate);
            $("#addressProvinceId").text(newsObject.addressProvince);
            $("#addressCityId").text(newsObject.addressCity);

            if(newsObject.neonatalCareType) {

                if (newsObject.neonatalCareType == 0){
                    $("#neonatalCareTypeId").text("普通病房");
                }else {

                    var bfstr = "新生儿监护病房NICU 监护类型：";
                    if(newsObject.neonatalCareType == 1){

                        bfstr = bfstr + "新生儿黄疸";
                    }else if(newsObject.neonatalCareType == 2){

                        bfstr = bfstr + "新生儿肺炎";
                    }else if(newsObject.neonatalCareType == 3){

                        bfstr = bfstr + "新生儿早产/低体重儿";
                    }else if(newsObject.neonatalCareType == 4){

                        bfstr = bfstr + "呛到羊水";
                    }else if(newsObject.neonatalCareType == 5){

                        bfstr = bfstr + "其他：";
                        if(newsObject.deafBabyDesc){

                            bfstr = bfstr + newsObject.deafBabyDesc;
                        }
                    }
                    $("#neonatalCareTypeId").text(bfstr);
                }
            }
            $("#nationaltilyId").text(newsObject.nationaltily);
            $("#motherPhoneNumId").text(newsObject.motherPhoneNum);
            $("#husbandPhoneNumId").text(newsObject.husbandPhoneNum);
            $("#idCardId").text(newsObject.ownerIdCard);

            if(newsObject.pregnancyInfection){

                var mqyqgr;
                if(newsObject.pregnancyInfection == 0){
                    mqyqgr = "无";
                }else if(newsObject.pregnancyInfection == 1){
                    mqyqgr = "弓形虫";
                }else if(newsObject.pregnancyInfection == 2){
                    mqyqgr = "风疹病毒";
                }else if(newsObject.pregnancyInfection == 3){
                    mqyqgr = "巨细胞病毒";
                }else if(newsObject.pregnancyInfection == 4){
                    mqyqgr = "单纯胞疹病毒";
                }else if(newsObject.pregnancyInfection == 5){
                    var pistr = "其他：";
                    if(newsObject.pregnancyInfectionInfo){
                        var pistr = pistr + newsObject.pregnancyInfectionInfo;
                    }
                    mqyqgr = pistr;
                }
                $("#pregnancyInfectionId").text(mqyqgr);
            }

            if(newsObject.consanguineousMarriage){

                if(newsObject.consanguineousMarriage == 0){
                    $("#consanguineousMarriageId").text("无");
                }else if(newsObject.consanguineousMarriage == 1){
                    $("#consanguineousMarriageId").text("有");
                }
            }

            if(newsObject.medicationHistory){

                if(newsObject.medicationHistory == 0){
                    $("#medicationHistoryId").text("否");
                }else if(newsObject.medicationHistory == 1){
                    $("#medicationHistoryId").text("是");
                }
            }

            if(newsObject.familyDeafness){

                if(newsObject.familyDeafness == 0){
                    $("#familyDeafnessId").text("无");
                }else if(newsObject.familyDeafness == 1){
                    $("#familyDeafnessId").text("有");
                }
            }
            if(newsObject.earDeformity){

                if(newsObject.earDeformity == 0){
                    $("#earDeformityId").text("否");
                }else if(newsObject.earDeformity == 1){
                    $("#earDeformityId").text("是");
                }
            }

        });

	</script>
	<style>
		.container{
			overflow: hidden;
		}
		.content{
			margin: 20px auto;
		}
		.title{
			margin:20px auto;
			text-align: center;
		}
		.title span{
			display:inline-block;
			line-height: 50px;
			font-size:30px;
		}
		.blue-tr{
			height: auto;
			padding: 5px 10px;
		}
		.groupCont{
			margin: 5px auto;
		}
		.contList{
			font-size:15px;
			line-height: 28px;
			border-bottom: 1px dashed #a7a7a7;
			padding:0px 0px 0px 15px ;
		}
		.t-group-title{
			font-size: 18px;
			font-weight: bold;
		}

		.t-group-item{
			display: inline-block;
			width:45%;
		}
	</style>
</head>

<body>
<!--我是主要内容-->
<div class="container" >
	<div class="content">
		<div class="title"><span id="productName"></span></div>
		<div class="second-table t-group">
			<div class="blue-tr">
				<div class="droppable t-group-title">免费券信息</div>
			</div>
			<div class="groupCont">
				<div class="contList">
                   <span class="field t-group-item">
                       <i class="t-name t-require">免费券编码</i>：
                       <span id="couponNum"></span>
                   </span>
				</div>

			</div>
		</div>
		<div class="second-table t-group">
			<div class="blue-tr">
				<div class="droppable t-group-title">送检单信息</div>
			</div>
			<div class="groupCont">
				<div class="contList">
                   <span class="field t-group-item">
                       <i class="t-name t-require">送检单位</i>：
                       <span id="customerNameId"></span>
                   </span>
				</div>
				<div class="contList">
                    <span class="field t-group-item">
                        <i class="t-name">送检科室</i>：
                        <span id="departments"></span>
                    </span>
				</div>
			</div>
		</div>
		<div class="second-table t-group">
			<div class="blue-tr">
				<div class="droppable t-group-title">样本信息</div>
			</div>
			<div class="groupCont">
				<div class="contList">
                    <span class="field t-group-item">
                       <i class="t-name">采样日期</i>：
                       <span id="bloodDate"></span>
                    </span>
				</div>

			</div>
		</div>
		<div class="second-table t-group">
			<div class="blue-tr">
				<div class="droppable t-group-title">受检者信息</div>
			</div>
			<div class="groupCont">
				<div class="contList">
                    <span class="field t-group-item">
                        <i class="t-name t-require">新生儿姓名</i>：
                        <span id="sampleName"></span>
                    </span>
					<span class="field t-group-item">
                    <i class="t-name">母亲姓名</i>：
                    <span id="motherName"></span>
                </span>
				</div>
				<div class="contList">
                   <span class="field t-group-item">
                    <i class="t-name t-require">胎儿性别</i>：
                    <span id="sampleSex"></span>
                   </span>
					<span class="field t-group-item">
                     <i class="t-name">出生日期</i>：
                     <span id="birthDate"></span>
                 </span>
				</div>
				<div class="contList">
                    <span class="field t-group-item">
                        <i class="t-name">籍贯</i>：
                        <span id="addressProvinceId"></span>
                        <span id="addressCityId"></span>
                    </span>
					<span class="field t-group-item">
                        <i class="t-name">民族</i>：
                        <span id="nationaltilyId"></span>
                    </span>
				</div>

				<div class="contList">
                    <span class="field t-group-item">
                    <i class="t-name">联系电话</i>：
                    <span id="motherPhoneNumId"></span>
                    </span>
					<span class="field t-group-item">
                    <i class="t-name">丈夫手机号</i>：
                    <span id="husbandPhoneNumId"></span>
                    </span>
				</div>
				<div class="contList">
                    <span class="field t-group-item" style="width: 100%;">
                    <i class="t-name">母亲身份证号</i>：
                    <span id="idCardId"></span>
                    </span>
				</div>
				<div class="contList">
                    <span class="group-field field t-group-item" style="width: 100%;">
                    <input class="submit" id="neonatalCareType-input" type="hidden" value="" />
                    <i class="t-name">新生儿所在病房</i>：
                    <span id="neonatalCareTypeId"></span>
                    </span>
				</div>
			</div>
		</div>
		<div class="second-table t-group">
			<div class="blue-tr">
				<div class="t-group-title">临床信息</div>
			</div>
			<div class="groupCont">
				<div class="contList">
                    <span class="field t-group-item" validate="required" style="width: 100%;">
                        <i class="t-name">母亲怀孕期感染</i>：
                        <span id="pregnancyInfectionId"></span>
                    </span>
				</div>
				<div class="contList">
                    <span class="group-field field t-group-item" validate="required">
                        <i class="t-name">父母近亲结婚</i>：
                        <span id="consanguineousMarriageId"></span>
                    </span>
					<span class="group-field field t-group-item" validate="required">
                        <i class="t-name">新生儿用药史</i>：
                        <span id="medicationHistoryId"></span>
                    </span>
				</div>

				<div class="contList">
                    <span class="group-field field t-group-item" validate="required">
                        <i class="t-field-id" data-value="familyDeafness"></i>
                        <i class="t-name">耳聋家族史</i>：
                        <span id="familyDeafnessId"></span>
                    </span>
					<span class="group-field field t-group-item" validate="required">
                        <i class="t-name">新生儿耳部畸形</i>：
                        <span id="earDeformityId"></span>
                    </span>
				</div>
			</div>
		</div>
		<div class="second-table t-group">
			<div class="blue-tr">
				<div class="t-group-title">检测项目</div>
			</div>
			<div class="groupCont">
				<div class="contList">
					<span>产品编号：</span>
					<p class="field t-group-item-product">
						<b>
                            <span id="productName_DX0459">
                            <i class="t-product-name">遗传性耳聋4个常见基因检测</i>
                            </span>
						</b>（<i class="t-product-value">DX0459</i>）
					</p>
				</div>

			</div>
		</div>
	</div>
</div>
</body>
</html>